#include "dataelement.h"

DataElement::DataElement(const char *name, long double size, int type) {
	this->name = new char[strlen(name)+1];//name;
	this->name = strcpy((char *)this->name, name);
	this->size = size;
	this->type = type;
}

DataElement::~DataElement() {
	if (this->name) delete this->name;
}

const char *DataElement::getName() {
	return this->name;
}

void DataElement::setSize(long double newSize) {
	this->size = newSize;
}

long double DataElement::getSize() {
	return this->size;
}

int DataElement::getType() {
	return this->type;
}
